#ifndef __HELLO_WIDGET_H__
#define __HELLO_WIDGET_H__

#include <stdint.h>

#include "widget.h"

/*! Create a hello world widget.
 * \param text: name of the application
 * \param width: size
 * \param height: size
 */ 
widget_t *create_hello_widget(char*,uint32_t,uint32_t);

/* Set application name
 * \param self: pointer to its widgets
 * \param text: name of the application
 */
void hello_widget_set_text(widget_t*,char*);

/*! Callback function, called to redraw the widget.
 * \param self: pointer to its widget
 * \param hdc: handler to its device handler
 */
void hello_widget_paint(widget_t*,HDC);

/*! Callback function, called when the user press left mouse button
 * \param self: pointer to its widget
 * \param x: mouse coordinate
 * \param y: mouse coordinate
 * \param flag: indicate if other virtual key or mouse buttons is down
 */
void hello_widget_lbutton_down(widget_t*,int32_t,int32_t,uint32_t);

/*! Callback function, called when the user press a key on the keyboard
 * \param self: pointer to its widget
 * \param vkey: virtual key pressed
 */
void hello_widget_key_down(widget_t*,uint32_t);

#endif /* __HELLO_WIDGET__ */

